#!/usr/bin/bash
ARG_NAME=ssh_port
if /usr/sbin/mdata-get ${ARG_NAME} 1>/dev/null 2>&1; then
    ARG_VALUE=$(/usr/sbin/mdata-get ${ARG_NAME})    
    gsed -i "s|^Port 10086|Port ${ARG_VALUE}|" /etc/ssh/sshd_config 1>/dev/null 2>&1    
fi  